{% extends "base.html" %}
{% block title %}dish{% end %}

{% block head %}
{% end %}
{% block body %}

<div class="container">
    <div class="row">
    <div class="span7">
        <div class="d-dish-img">
            <img src="{{ dish.pic_url }}" itemprop="image">
        </div>
        {{ dish.intro }}
        <br/>
        <a href="/recipe/{{recipe.id}}">{{recipe.title}}</a>
        <br/>
    </div>
    <div class="span3">
        <a href="/cook/{{user.id}}">{{ user.nickname }}</a><br/>
        {% if  current_user and dish.user_id == current_user.get('uid') %}
        <a href="/dish/{{dish.id}}/edit">Edit</a>
        <br/>
        <a href="/dish/{{dish.id}}/delete">Delete</a>
        <br/>
        {% end %}
    </div>
  </div>
</div>

{% end %}
